package it.tukano.treditor.resources;

import it.tukano.collections.MapExt;

/**
 * Program's configuration values
 * @author pgi
 */
public class Configuration {
    
    private static final Configuration instance = new Configuration();
    
    public static Configuration getInstance() {
        return instance;
    }
    
    public static enum ConfigurationKey {
        TREDITOR_FILE_EXTENSION
    }
    
    private final MapExt<ConfigurationKey, String> map = MapExt.<ConfigurationKey, String>newEnumMap(ConfigurationKey.class)
            .putAll(ConfigurationKey.class, String.class,
            ConfigurationKey.TREDITOR_FILE_EXTENSION, "3dtor.ser");
    
    /**
     * Instance initializer
     */
    public Configuration() {
    }
    
    public String get(ConfigurationKey key) {
        return map.get(key);
    }
}
